import request from '@/utils/axios'

export function getJobParams(params) {
  let url = '/jenkins/getJobParams'
  return request(url, {
    method: 'GET',
    params: params
  })
}

export function getBuild(params) {
  let url = '/jenkins/getBuildList'
  return request(url, {
    method: 'GET',
    params: params
  })
}

export function buildJob(params) {
  let url = '/jenkins/build'
  return request(url, {
    method: 'POST',
    body: params
  })
}
